package com.bit.cfdi.web.services;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.dao.DataAccessException;
import org.springframework.stereotype.Service;

import com.bit.cfdi.web.dao.ComprobanteCreditoDAO;
import com.bit.cfdi.web.domain.ComprobanteCredito;
@Service
public class ComprobanteCreditoService {
	
	@Autowired ComprobanteCreditoDAO comprobanteDAO;

	public List<ComprobanteCredito> getAll() throws DataAccessException {
		return comprobanteDAO.getAll();
	}

	
	public void save(final ComprobanteCredito comprobanteCredito) throws DataAccessException {
		comprobanteDAO.save(comprobanteCredito);
	}

	
}
